Write-Host "========================================" -ForegroundColor Green
Write-Host "WMS Simple 料位管理系统启动脚本" -ForegroundColor Green  
Write-Host "========================================" -ForegroundColor Green
Write-Host ""

Write-Host "正在激活Python虚拟环境..." -ForegroundColor Yellow
& D:\python\wms_env\Scripts\Activate.ps1

Write-Host "正在启动WMS系统..." -ForegroundColor Yellow
python main.py

Write-Host ""
Write-Host "程序已退出，按任意键关闭窗口..." -ForegroundColor Cyan
Read-Host 